// 暴力递归
var countNodes = function (root) {
    if (!root) return 0;
    let left_count = countNodes(root.left);
    let right_count = countNodes(root.right);
    return left_count + right_count + 1
};